<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="Shortcut Icon" href="/home/imgs/logo.ico"/>
    <title>佰傲嘉</title>
    <link rel="stylesheet" type="text/css" href="css/index.css"/>
    <style type="text/css">
    </style>

    <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript">
        (function(){
        })();
    </script>
</head>
<body>
<!--顶部banner菜单-->
<div id="banner"></div>

<!--大会相关-->
<div id="zl">
    <div id="ziliao">
        <ul>
            <!--<li class="click">-->
                <!--<div class="zli">大会章程</div>-->
                <!--<div class="ysj"></div>-->
            <!--</li>-->
            <!--<li>-->
                <!--<div class="zli">大会报名</div>-->
                <!--&lt;!&ndash;<div class="ysj"></div>&ndash;&gt;-->
            <!--</li>-->
            <!--<li>-->
                <!--<div class="zli">大会奖项</div>-->
                <!--&lt;!&ndash;<div class="ysj"></div>&ndash;&gt;-->
            <!--</li>-->
            <!--<li>-->
                <!--<div class="zli">安全与伦理</div>-->
                <!--&lt;!&ndash;<div class="ysj"></div>&ndash;&gt;-->
            <!--</li>-->
            <!--<li>-->
                <!--<div class="zli">资料下载</div>-->
                <!--&lt;!&ndash;<div class="ysj"></div>&ndash;&gt;-->
            <!--</li>-->
        </ul>
        <div class="zlbody" id="zl01"></div>
        <div class="zlbody" id="zl02"></div>
        <div class="zlbody" id="zl03"></div>
        <div class="zlbody" id="zl04"></div>
        <div class="zlbody" id="zl05"></div>
    </div>
</div>

<!--合作方式-->
<div id="hz"></div>

<!--页脚-->
<div id="foot">
    <div class="foot">
        网络备案：<a href="https://beian.miit.gov.cn" target="_blank">浙ICP备2021012406号</a>，<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33010802011705" target="_blank"><img src="./imgs/gongan.png" class="inline-block">浙公网安备 33010802011705号</a> © 2021 Copyright, All Rights Reserved
    </div>
</div>

<span id="pop"></span>
</body>
</html>


<script type="text/javascript" src="js/body.js"></script>
<!--<script type="text/javascript" src="js/trend.js"></script>-->
<script type="text/javascript">
    var cw = document.documentElement.clientWidth;
    var ch = document.documentElement.clientHeight;
    (function(){
        banner(4);
        leftMenu(1);
        viewLang(3);
        getIndex();
        hezuo();
    })();
    //左侧菜单
    function leftMenu(key){
        var lms = [
            {id:1,title:'大会章程', css:'C10008'},
            {id:2,title:'大会报名',css:'C10009'},
            {id:3,title:'大会奖项',css:'C10010'},
            {id:4,title:'安全与伦理',css:'C10011'},
            {id:5,title:'资料下载',css:'C1000012'},
        ];
        var h = '', i, d = lms, id, title, detail, dd, css;
        for (i=0; i<d.length; i++) {
            id = d[i].id; title = d[i].title; detail = d[i].detail; css = d[i].css;
            if (key==id) {
                h += '<li class="click" onclick="leftMenu('+id+')">';
                h += '<div class="zli" id="'+css+'">'+title+'</div>';
                h += '<div class="ysj"></div>';
                h += '</li>';
            } else {
                h += '<li onclick="leftMenu('+id+')">';
                h += '<div class="zli" id="'+css+'">'+title+'</div>';
                h += '</li>';
            }
        }
        $('#ziliao > ul').html(h);
        $('.zlbody').hide();
        $('#zl0'+key).show();
    }
    //数据获取
    function getIndex(){
        var formData = {};
        $.ajax({
            type: 'post',
            url: domain+'dh/index',
            data: formData,
            success: function (res) {
                res = JSON.parse(res);
                console.log(res);
                if (res.code!=0) {
                    pop({msg:res.msg}); return
                }
                var way = res.data.way; //章程
                var signup = res.data.signup; //报名
                var award = res.data.award; //奖项
                var lunli = res.data.lunli; //安全
                var ziliao = res.data.ziliao;
                $('#zl01').html(way.detail);
                $('#zl02').html(signup.detail);
                $('#zl03').html(award.detail);
                $('#zl04').html(lunli.detail);
                var h = '', i;
                if (ziliao.length>0) {
                    for (i=0; i<ziliao.length; i++) {
                        var link = ziliao[i].link;
                        h += '<div class="file">';
                        h += '<div class="icon">';
                        h += '<img src="/home/imgs/down.png" width="30">';
                        h += '</div>';
                        h += '<div class="txt">';
                        h += ziliao[i].fname+' <br> '+ziliao[i].addtime;
                        h += '</div>';
                        h += '<div class="todown" onclick="window.open(\''+link+'\',\'_blank\')">立即下载</div>';
                        h += '</div>';
                    }
                    $('#zl05').html(h);
//                    var bh = 0;
                    var bhs = [
                        $('#zl01').height(), $('#zl02').height(),
                        $('#zl03').height(), $('#zl04').height(),
                        $('#zl05').height(),
                    ];
                    bhs.sort((a, b) => b - a);
                    var zl = bhs[0] + 100;
                    $('#zl').height(zl);
                }
            },
            error: function () {
                console.log('网络错误');
            }
        });
    }
</script>